package com.zrong.gamesdk.test.integration.app;

import com.zrong.gamesdk.test.integration.thread.GameCommentThread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-6-28
 * Time: 上午11:05
 * To change this template use File | Settings | File Templates.
 */
public class GameCommentApp {
    public static void main(String args[]) {
        try {

            ExecutorService pool = Executors.newFixedThreadPool(4);
            Runnable runnable1 = new GameCommentThread("评论1", "700012217000", String.valueOf(OriginsType.GAME_HALL.getValue()), 1000, 100);
            Runnable runnable2 = new GameCommentThread("评论2", "700010587000", String.valueOf(OriginsType.WAP.getValue()), 1002, 50000);
            Runnable runnable3 = new GameCommentThread("评论3", "700010795000", String.valueOf(OriginsType.WWW.getValue()), 1003, 50000);
            Runnable runnable4 = new GameCommentThread("评论4", "700010783000", String.valueOf(OriginsType.GAME_HALL.getValue()), 1004, 40000);
            new Thread(runnable1).start();
//            new Thread(runnable2).start();
//            new Thread(runnable3).start();
//            new Thread(runnable4).start();
//            pool.submit(runnable1);
//            pool.submit(runnable2);
//            pool.submit(runnable3);
//            pool.submit(runnable4);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
